package lab01;

/**
 * Created by leovo on 2017/10/6.
 */
public class while循环 {
    public static void main(String[] args) {
        int i=1;
        int sum=0;
        while(i<=10){
            sum=sum+i;
            i++;
            System.out.println(sum);
        }
    }
}
